package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLAppConfig;
import HLLib.base.HLByteList;
import HLLib.base.HLIntList;
import HLLib.base.HLList;
import HLLib.base.HLString;
import HLLib.http.HLHttpObject;

public class HLClassAppConfig extends HLLibClass {
    public HLClassAppConfig(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLAppConfig();
    }

    public void StaticExecute(int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetStaticList();
            } else {
                resultOwnerObject.SetObject(resultIndex, HLAppConfig.GetStaticList());
            }
            break;
        }
        case 1: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetStaticObject(args.GetInt(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, HLAppConfig.GetStaticObject(args.GetInt(0)));
            }
            break;
        }
        case 2: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetServerName();
            } else {
                resultOwnerObject.SetObject(resultIndex, HLAppConfig.GetServerName());
            }
            break;
        }
        case 3: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetSubAdress();
            } else {
                resultOwnerObject.SetObject(resultIndex, HLAppConfig.GetSubAdress());
            }
            break;
        }
        case 4: {
            HLAppConfig.SetFrameCountPerSecond(args.GetInt(0));
            break;
        }
        case 5: {
            HLAppConfig.SetButtons(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3), args.GetInt(4));
            break;
        }
        case 6: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetGameButtonYes();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLAppConfig.GetGameButtonYes());
            }
            break;
        }
        case 7: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetGameButtonNo();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLAppConfig.GetGameButtonNo());
            }
            break;
        }
        case 8: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetGameButtonMemu();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLAppConfig.GetGameButtonMemu());
            }
            break;
        }
        case 9: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetGameButtonPause();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLAppConfig.GetGameButtonPause());
            }
            break;
        }
        case 10: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetGameButtonResume();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLAppConfig.GetGameButtonResume());
            }
            break;
        }
        case 11: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetButtonYesPos();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLAppConfig.GetButtonYesPos());
            }
            break;
        }
        case 12: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetButtonNoPos();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLAppConfig.GetButtonNoPos());
            }
            break;
        }
        case 13: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetButtonMenuPos();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLAppConfig.GetButtonMenuPos());
            }
            break;
        }
        case 14: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetButtonPausePos();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLAppConfig.GetButtonPausePos());
            }
            break;
        }
        case 15: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetButtonResumePos();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLAppConfig.GetButtonResumePos());
            }
            break;
        }
        case 16: {
            HLAppConfig.UpdateScores((HLIntList)args.GetObject(0), (HLIntList)args.GetObject(1), (HLList)args.GetObject(2));
            break;
        }
        case 17: {
            HLAppConfig.UpdateScore(args.GetInt(0), args.GetInt(1), (HLByteList)args.GetObject(0));
            break;
        }
        case 18: {
            HLAppConfig.UpdateAchievment((HLIntList)args.GetObject(0), (HLIntList)args.GetObject(1));
            break;
        }
        case 19: {
            HLAppConfig.UpdateScoresAndAchievments((HLIntList)args.GetObject(0), (HLIntList)args.GetObject(1), (HLList)args.GetObject(2), (HLIntList)args.GetObject(3), (HLIntList)args.GetObject(4));
            break;
        }
        case 20: {
            HLAppConfig.GetAppScoreAndAchievement(args.GetInt(0));
            break;
        }
        case 21: {
            HLAppConfig.HttpSend((HLHttpObject)args.GetObject(0));
            break;
        }
        case 22: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetDipX(args.GetInt(0));
            } else {
                resultOwnerObject.SetInt(resultIndex, HLAppConfig.GetDipX(args.GetInt(0)));
            }
            break;
        }
        case 23: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetDipY(args.GetInt(0));
            } else {
                resultOwnerObject.SetInt(resultIndex, HLAppConfig.GetDipY(args.GetInt(0)));
            }
            break;
        }
        case 24: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetUserHead();
            } else {
                resultOwnerObject.SetObject(resultIndex, HLAppConfig.GetUserHead());
            }
            break;
        }
        case 25: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetUserName();
            } else {
                resultOwnerObject.SetObject(resultIndex, HLAppConfig.GetUserName());
            }
            break;
        }
        case 26: {
            if (resultOwnerObject == null) {
                HLAppConfig.GetUserUid();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLAppConfig.GetUserUid());
            }
            break;
        }
        case 27: {
            if (resultOwnerObject == null) {
                HLAppConfig.getGroupId();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLAppConfig.getGroupId());
            }
            break;
        }
        case 28: {
            HLAppConfig.SetAppResUrl((HLString)args.GetObject(0));
            break;
        }
        }
    }
}
